﻿using System.Collections.Generic;

namespace ShopB2C.Core.Entities
{
    /// <summary>
    /// 消息状态枚举
    /// </summary>
    public enum MessageStatus
    {
        /// <summary>
        /// 成功
        /// </summary>
        Ok = 1000,
        /// <summary>
        /// 失败
        /// </summary>
        Error = 2000,
        /// <summary>
        /// 提示
        /// </summary>
        Info = 3000,
        /// <summary>
        /// 警告
        /// </summary>
        Waring = 4000
    }
    /// <summary>
    /// 返回类型
    /// </summary>
    public enum ResultType
    {
        /// <summary>
        /// 一个页面
        /// </summary>
        View,
        /// <summary>
        /// 文本打印
        /// </summary>
        Content,
        /// <summary>
        /// 带script标签内容<![CDATA[<script type='text/javascript'></script>]]>
        /// </summary>
        Javascript,
        /// <summary>
        /// json数组
        /// </summary>
        Json,
        /// <summary>
        /// Ajax返回的Html
        /// </summary>
        Ajax
    }
    /// <summary>
    /// 返回消息 ViewModel
    /// </summary>
    public class MessageException
    {
        /// <summary>
        /// 消息内容集合
        /// </summary>
        public List<string> MessageCollection { get; set; }
        /// <summary>
        /// 消息标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 消息正文 
        /// </summary>
        public string Body { get; set; }
        /// <summary>
        /// 消息状态
        /// </summary>
        public MessageStatus Status { get; set; }
        /// <summary>
        /// 执行操作
        /// </summary>
        public List<string> Operate { get; set; }
    }

}
